package tree.threadedbinarytree;

public class TBinTreeNode {
    private String data;
    private TBinTreeNode tLeftChild;
    private TBinTreeNode tRightChild;
    boolean leftThread;
    boolean rightThread;

    public TBinTreeNode() {
    }

    public TBinTreeNode(String data) {
        this.data = data;
    }

    public TBinTreeNode(String data, boolean leftThread, boolean rightThread) {
        this.data = data;
        this.leftThread = leftThread;
        this.rightThread = rightThread;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public TBinTreeNode gettLeftChild() {
        return tLeftChild;
    }

    public void settLeftChild(TBinTreeNode tLeftChild) {
        this.tLeftChild = tLeftChild;
    }

    public TBinTreeNode gettRightChild() {
        return tRightChild;
    }

    public void settRightChild(TBinTreeNode tRightChild) {
        this.tRightChild = tRightChild;
    }

    public boolean isLeftThread() {
        return leftThread;
    }

    public void setLeftThread(boolean leftThread) {
        this.leftThread = leftThread;
    }

    public boolean isRightThread() {
        return rightThread;
    }

    public void setRightThread(boolean rightThread) {
        this.rightThread = rightThread;
    }
}
